﻿Imports WindowsControlLibrary1
Public Class RGBHistogram
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        UserControl11.addImage()
        'PictureBox1.Image = New Bitmap(UserControl11.PathFile)
        PictureBox1.Load(UserControl11.PathFile)
        PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        UserControl11.reverseHisto()
    End Sub

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
        UserControl11.selectionColor = UserControl1.histoType.Green
    End Sub

    Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
        UserControl11.selectionColor = UserControl1.histoType.Blue
    End Sub

    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
        UserControl11.selectionColor = UserControl1.histoType.Red
    End Sub

    Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
        UserControl11.addStroke()
    End Sub

    Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
        UserControl11.subStroke()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        UserControl11.selectionColor = UserControl1.histoType.RGB
    End Sub

    Private Sub UserControl11_Load(sender As Object, e As EventArgs) Handles UserControl11.Load

    End Sub
End Class
